package com.firefightingiot_data.data.web.web;

import cn.hutool.json.JSONObject;
import com.firefightingiot_data.data.common.base.BaseController;
import com.firefightingiot_data.data.support.annotaion.Action;
import com.firefightingiot_data.data.support.annotaion.At;
import com.firefightingiot_data.data.support.model.RespEntity;
import com.firefightingiot_data.data.web.service.NormalDataLogService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.annotation.Resource;

/**
 * @Author: YangYu
 * @ClassName: NormalDataLogController
 * @Date: Created in 15:26 2022/4/21
 * @Description: 正常数据
 */
@Action
@RequestMapping(value="normalInfo")
public class NormalDataLogController extends BaseController {
    @Resource
    NormalDataLogService normalDataLogAdd;

    /**
     * @Author YangYu
     * @Description 正常数据添加
     * @Date Created in 15:28 2022/4/21
     * @Param [jsonParam]
     */

    @At(value = "add", method = RequestMethod.POST, param = { "number","time","paraminfo"})
    public RespEntity normalDataLogAdd(@RequestBody(required = false) JSONObject jsonParam) {
        return normalDataLogAdd.normalDataLogAdd(jsonParam);
    }
}
